package com.tencreat.domain.mall.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 消息列表
 * @author zixin
 */
@Data
public class MallMessageListVO {

    @ApiModelProperty("列表编号")
    private Long id;

    @ApiModelProperty(value= "用户ID")
    private Long userId;

    @ApiModelProperty(value= "关联ID")
    private Long joinUserId;

    @ApiModelProperty(value= "未读消息数")
    private Long unreadMessage;

    @ApiModelProperty("最新消息内容")
    private String newMsg;

    @ApiModelProperty("最新消息内容类型")
    private Integer newMsgType;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("最新消息时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime newMsgTime;

}
